package com.rightsidetech.system.mapper;

import com.rightsidetech.system.dtos.request.news.FileUriType;
import com.rightsidetech.system.entity.news.SysNewsFile;

import java.util.List;
import java.util.Map;

public interface SysNewsFileMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysNewsFile record);

    int insertSelective(SysNewsFile record);

    SysNewsFile selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysNewsFile record);

    int updateByPrimaryKey(SysNewsFile record);

    int insertList(Map<String, Object> map);

    List<FileUriType> selectListByNewsId(Long newsId);

    int deleteByNewsId(Long newsId);
}